package com.example.demo.queue.blockingQueue;

import java.util.concurrent.*;

/**
 * @desc:
 * @author: fuxiang
 * @date: 2018/3/5 14:26
 */
public class Basket {
    private final static BlockingQueue<String> blockingQueue=new LinkedBlockingQueue<String>();

    public static  void put() throws InterruptedException {
        blockingQueue.put("an anpple");
    }
    public static String take() throws InterruptedException {

        return  blockingQueue.take();
    }
}
